import http from '@/utils/http'
//
/**
 * @params request 请求地址
 * @param '/testIp' 代表vue-cli中config, index.js中配置代理
 */
let request = ''

// post请求add
export function getBusinessListWithChannel(params){
  return http.get(`${request}/yyymobile/sys/api/v1/channel/getBusinessListWithChannel`, params)
}



export function getAllWorkersAccountInfo(params){
  return http.get(`${request}/yyymobile/sys/api/v1/users/getAllWorkersAccountInfo`, params)
}


export function getBusinessListWithCustom(params){
  return http.get(`${request}/yyymobile/sys/api/v1/custom/getBusinessListWithCustom`, params)
}


export function insertCustom(params){
  return http.post(`${request}/yyymobile/sys/api/v1/custom/insertCustom`, params)
}


export function selectCustomInfos(params){
  return http.post(`${request}/yyymobile/sys/api/v1/custom/selectCustomInfos`, params)
}


export function selectCustomInfo(params){
  return http.get(`${request}/yyymobile/sys/api/v1/custom/selectCustomInfo`, params)
}


export function updateCustom(params){
  return http.put(`${request}/yyymobile/sys/api/v1/custom/updateCustom`, params)
}


export function selectCustomQuotations(params){
  return http.post(`${request}/yyymobile/sys/api/v1/custom/selectCustomQuotations`, params)
}

export function insertCustomQuotation(params){
  return http.post(`${request}/yyymobile/sys/api/v1/custom/insertCustomQuotation`, params)
}


export function updateCustomQuotation(params){
  return http.put(`${request}/yyymobile/sys/api/v1/custom/updateCustomQuotation`, params)
}


export function selectAllAsaOrgNames(params){
  return http.get(`${request}/yyymobile/sys/api/v1/server/selectAllAsaOrgNames`, params)
}


export function getAllPermissionInfos(params){
  return http.get(`${request}/yyymobile/sys/api/v1/server/getAllPermissionInfos`, params)
}


export function addAsaOrgRelation(params){
  return http.post(`${request}/yyymobile/sys/api/v1/custom/addAsaOrgRelation`, params)
}


export function selectAsaOrgRelations(params){
  return http.get(`${request}/yyymobile/sys/api/v1/custom/selectAsaOrgRelations`, params)
}

export function delAsaOrgRelation(params){
  return http.delete(`${request}/yyymobile/sys/api/v1/custom/delAsaOrgRelation`, params)
}
